package com.okwanshiwu.enums;

/**
 * Created by masteyuan on 2017/7/25.
 */
public enum TipEnum {

	SUCCESS("操作成功",10001),FAIL("操作失败",20001),APPFILE("代码执行失败",30001);
	// 成员变量
	private String name;
	private int code;
	// 构造方法
	private TipEnum(String name, int code) {
		this.name = name;
		this.code = code;
	}
	//覆盖方法
	@Override
	public String toString() {
		return this.code+"_"+this.name;
	}
}
